package com.music.common.dao;

import org.springframework.dao.DataAccessException;

import com.music.common.entity.UserDetail;
import com.music.common.errorhandler.DaoException;

public interface IUserDetails {

	/**
	 * @param userName
	 * @return
	 * @throws DaoException 
	 * @throws Exception
	 */
	public UserDetail getUserDetail(String userName) throws DaoException;
	/**
	 * @param userName
	 * @param password
	 * @return
	 * @throws DataAccessException
	 * @throws java.sql.SQLException
	 * @throws DaoException 
	 */
	public boolean checkUserLogin(String userName, String password)
			throws DaoException;
}
